package com.ctrip.corp.obt.shard.infrastructure.etcd;

import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @author marco.zheng
 * @version 1.0
 * @date 2022/01/14
 * @desc 数据库信息
 * @see
 * @since 1.0
 */
@Data
@Accessors(chain = true)
@NoArgsConstructor
public class EtcdShardSourceMeta {

    @JsonProperty("driver_class")
    private String driverClassName;

    private String url;

    private String username;

    private String password;

    /**
     * 需要开启的插件配置
     */
    @JsonProperty("enable_plugins")
    private List<String> enablePlugins;

    private String role;
}
